package cc.mrbird.febs.pedometer.service;

import cc.mrbird.febs.pedometer.entity.Batches;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 鸡批次 Service接口
 *
 * @author li
 * @date 2020-01-31 11:40:37
 */
public interface IBatchesService extends IService<Batches> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param batches batches
     * @return IPage<Batches>
     */
    IPage<Batches> findBatchess(QueryRequest request, Batches batches);

    /**
     * 查询（所有）
     *
     * @param batches batches
     * @return List<Batches>
     */
    List<Batches> findBatchess(Batches batches);

    /**
     * 新增
     *
     * @param batches batches
     */
    void createBatches(Batches batches);

    /**
     * 修改
     *
     * @param batches batches
     */
    void updateBatches(Batches batches);

    /**
     * 删除
     *
     * @param batchesId
     */
    void deleteBatches(String batchesId);
}
